package com.study.dao;

import com.study.bean.entity.DormitoryBuilding;
import com.study.bean.entity.StuCounter;
import com.study.bean.entity.Student;
import com.study.bean.query.BuildAdmin;
import com.study.bean.query.Rooms;
import com.study.bean.query.StudentQuery;
import com.study.bean.vo.StudentVO;

import java.util.List;

public interface StudentDao {

    List<StudentVO> selectByPage(StudentQuery StudentQuery);

    int selectTotalCount(StudentQuery StudentQuery);

    int deleteById(int id, int status);

    void add(Student Student);

    StudentVO selectById(int id);

    void update(Student Student);


    List<DormitoryBuilding> selectbuild();

    List<Rooms> selectRoom(int buildId);

    List<BuildAdmin> selectAdmin(int buildId);

    Integer addStudent(Student student);

    Integer updateStudent(Student student);

    StuCounter login(String sno, String password);
}
